#ifndef QTITLEHEADER_H
#define QTITLEHEADER_H

#include <QtCore/qglobal.h>

#ifdef COMMONCTRL_LIB
# define COMMONCTRL_EXPORT Q_DECL_EXPORT
#else
# define COMMONCTRL_EXPORT Q_DECL_IMPORT
#endif

#include <QWidget>
class QTitleHeaderPrivate;
class COMMONCTRL_EXPORT QTitleHeader : public QWidget
{
	Q_OBJECT

public:
	explicit QTitleHeader(QString& strText,QString &strImgName,QWidget *parent = 0);
	~QTitleHeader();
	void		setMinButtonVisible(bool	bVisible);
	void		setMaxButtonVisible(bool	bVisible);
	void		setMenuButtonVisible(bool	bVisible);
	void		setTitle(const QString&);

private:
	QTitleHeaderPrivate*	d;
signals:
	void		onAppMinSignal();
	void		onAppMaxSignal();
	void		onAppCloseSignal();
	void		onAppMenuSignal();
};

#endif // QTITLEWIDGET_H
